home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48hor2 / in7.doc < prev    next >
Text File  |  1995-03-31  |  885b  |  25 lines

  1. (Library.development) 
  2. Item: 16 by akcs.bson@hpcvbbs.cv.hp.com 
  3. Author: [Jan Brittenson] 
  4.   Date: Wed Feb 05 1992 
  5.  
  6. [Note: What Jan here refers to (using Alonzo Gariepy's mnemonics) as 
  7.  the "IN.4 A" instruction, is the same as the "A=IN" instruction in 
  8.  HP's mnemonics.  Either way, it's opcode 802 (hex).  -jkh-] 
  9.  
  10. Due to a bug in the Saturn CPU (or maybe the memory controller, or the 
  11. interconnect between them, or whatever, what do I know...) IN.4 A 
  12. *must* reside on an even address, or the next instruction will be 
  13. garbled. The solution is to call the ROM at address 1160. So, replace: 
  14.  
  15.                   IN.4  A 
  16.  
  17. with: 
  18.  
  19.                   CALL 0x1160  ; do IN.4 A 
  20.  
  21. [That's GOSBVL #1160 in HP mnemonics.  -jkh-] 
  22.  
  23. The code at 1160 just does an IN.4 A followed by a RET. Since it's ROM 
  24. it will always be on an even (integral byte) address.  
  25.